<script setup>
import { useRoute } from 'vue-router';
import {detailPro} from '../api/homeApi'
import {ref} from 'vue'
const route = useRoute()

// console.log(route.query.proid);
const data = ref()
detailPro({proid: route.query.proid}).then(res => {
  console.log(res);
  data.value = res.data
})

</script>
<template>
  <div class="about">
    <h1>
      {{ data.proname }}
    </h1>
  </div>
</template>

<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
